import { componentSizeMap } from "element-plus"
import {get,post} from "../../utils/request"
interface IList{
    page:number,
    psize:number,
    depid:number,
    key:string
}
// 列表
const List = (params:IList) =>{
    return get("classes/list",params)
}
// 联动
const cascadeList = ()=>{
    return get("department/list")
}
// 添加
const add = (params:any)=>{
    return post("classes/add",params)
}
// 删除
const delet = (id:number)=>{
    return get("classes/delete",{id})
}
// 批量删除
const delAll = (ids:any)=>{
    return post("classes/deleteall",{ids:ids})
}
export {List,cascadeList,add,delet,delAll}